<?php
/**
 * Created by PhpStorm.
 * User: zl
 * Date: 2017/7/26
 * Time: 18:35
 */
    require_once('OrdinaryFee.php');
    require_once('../Common.php');

    $data = $_POST;

    $result_array = array();
    if(!$data) {
        $result_array['state'] = 0;
        $result_array['state_error'] = 'POST_ERROR';
        exit($result_array);

    }

    $o_fee = new OrdinaryFee();

    $r = $o_fee->approveOrdinaryFee($data);
    if($r){
        $result_array['state'] = 1;
        $result_array['state_error'] = '';
    }
    else{
        $result_array['state'] = 0;
        $result_array['state_error'] = 'DB_ERROR';
    }
    echo json_encode($result_array);



?>